<?php /* Smarty version Smarty-3.0.6, created on 2025-08-13 17:00:13
         compiled from "D:\wwwroot\gushi-v2/tpl\v2/index.html" */ ?>
<?php /*%%SmartyHeaderCode:7431689c541d8fcd56-54264815%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd1c9f6703582f63bfa78f4386665e1b96930a28a' => 
    array (
      0 => 'D:\\wwwroot\\gushi-v2/tpl\\v2/index.html',
      1 => 1755075604,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '7431689c541d8fcd56-54264815',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_truncate')) include 'D:\wwwroot\gushi-v2\SpeedPHP\Drivers\Smarty\plugins\modifier.truncate.php';
?> <?php $_template = new Smarty_Internal_Template("v2/header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<main class="pt-24 pb-16">
        <!-- 英雄区域 -->
        <section class="relative h-[80vh] min-h-[600px] overflow-hidden">
            <div class="absolute inset-0 z-0">
                <img src="https://picsum.photos/id/1036/1920/1080" alt="古典意境" class="w-full h-full object-cover">
                <div class="absolute inset-0 hero-overlay"></div>
            </div>
            
            <div class="container mx-auto px-4 h-full flex items-center relative z-10">
                <div class="max-w-2xl scroll-reveal">
                    <h1 class="text-[clamp(2.5rem,6vw,4rem)] font-song font-bold text-rice leading-tight mb-6">
                        举头望明月<br>低头思故乡
                    </h1>
                    <p class="text-[clamp(1rem,2vw,1.25rem)] text-rice/90 mb-8 max-w-xl">
                        穿越千年的文字，在现代语境中重获新生。探索古典诗词的意境之美，感受传统文化的当代魅力。
                    </p>
                    <div class="flex flex-wrap gap-4">
                        <a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'gushi'),$_smarty_tpl);?>
" class="bg-cinnabar text-rice px-8 py-3 rounded-full hover:bg-opacity-90 transition-all duration-300 font-medium">
                            探索诗境
                        </a>
                        <a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'interactive'),$_smarty_tpl);?>
" class="bg-transparent border-2 border-rice text-rice px-8 py-3 rounded-full hover:bg-rice/10 transition-all duration-300 font-medium">
                            互动体验
                        </a>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 特色分类 -->
        <section class="container mx-auto px-4 py-16">
            <h2 class="text-[clamp(1.5rem,3vw,2.25rem)] font-song font-bold mb-2 text-center scroll-reveal">诗词分类</h2>
            <p class="text-lightink text-center max-w-2xl mx-auto mb-12 scroll-reveal">从不同主题感受古典诗词的多样魅力，找到触动你心灵的那一句</p>
            
            <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4 md:gap-6">
                <a href="index.php?c=main&a=gushi&f=tags&v=山水" class="bg-paper rounded-xl p-6 text-center feature-card-hover scroll-reveal">
                    <div class="w-14 h-14 mx-auto mb-4 rounded-full bg-cinnabar/10 flex items-center justify-center">
                        <i class="fa fa-tree text-cinnabar text-xl"></i>
                    </div>
                    <h3 class="font-song font-medium">山水</h3>
                </a>
                
                <a href="index.php?c=main&a=gushi&f=tags&v=边塞" class="bg-paper rounded-xl p-6 text-center feature-card-hover scroll-reveal">
                    <div class="w-14 h-14 mx-auto mb-4 rounded-full bg-cinnabar/10 flex items-center justify-center">
                        <i class="fa fa-flag text-cinnabar text-xl"></i>
                    </div>
                    <h3 class="font-song font-medium">边塞</h3>
                </a>
                
                <a href="index.php?c=main&a=gushi&f=tags&v=思乡" class="bg-paper rounded-xl p-6 text-center feature-card-hover scroll-reveal">
                    <div class="w-14 h-14 mx-auto mb-4 rounded-full bg-cinnabar/10 flex items-center justify-center">
                        <i class="fa fa-home text-cinnabar text-xl"></i>
                    </div>
                    <h3 class="font-song font-medium">思乡</h3>
                </a>
                
                <a href="index.php?c=main&a=gushi&f=tags&v=爱情" class="bg-paper rounded-xl p-6 text-center feature-card-hover scroll-reveal">
                    <div class="w-14 h-14 mx-auto mb-4 rounded-full bg-cinnabar/10 flex items-center justify-center">
                        <i class="fa fa-heart text-cinnabar text-xl"></i>
                    </div>
                    <h3 class="font-song font-medium">爱情</h3>
                </a>
                
                <a href="index.php?c=main&a=gushi&f=tags&v=咏史" class="bg-paper rounded-xl p-6 text-center feature-card-hover scroll-reveal">
                    <div class="w-14 h-14 mx-auto mb-4 rounded-full bg-cinnabar/10 flex items-center justify-center">
                        <i class="fa fa-book text-cinnabar text-xl"></i>
                    </div>
                    <h3 class="font-song font-medium">咏史</h3>
                </a>
                
                <a href="index.php?c=main&a=gushi&f=tags&v=田园" class="bg-paper rounded-xl p-6 text-center feature-card-hover scroll-reveal">
                    <div class="w-14 h-14 mx-auto mb-4 rounded-full bg-cinnabar/10 flex items-center justify-center">
                        <i class="fa fa-leaf text-cinnabar text-xl"></i>
                    </div>
                    <h3 class="font-song font-medium">田园</h3>
                </a>
            </div>
        </section>
        
        <!-- 精选诗词 -->
        <section class="bg-paper py-16">
            <div class="container mx-auto px-4">
                <div class="flex justify-between items-end mb-12">
                    <div>
                        <h2 class="text-[clamp(1.5rem,3vw,2.25rem)] font-song font-bold mb-2 scroll-reveal">精选诗词</h2>
                        <p class="text-lightink max-w-2xl scroll-reveal">每日精选，与你共赏经典</p>
                    </div>
                    <a href="index.php?c=main&a=gushi" class="hidden md:block text-cinnabar hover:text-cinnabar/80 transition-colors scroll-reveal">
                        查看全部 <i class="fa fa-angle-right ml-1"></i>
                    </a>
                </div>
                
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                    <!-- 诗词1 -->
                    <?php  $_smarty_tpl->tpl_vars['gushi'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('gushir')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['gushi']->key => $_smarty_tpl->tpl_vars['gushi']->value){
?>
                    <a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'gsDetails','id'=>$_smarty_tpl->tpl_vars['gushi']->value['id']),$_smarty_tpl);?>
" class="bg-rice rounded-xl overflow-hidden shadow-sm poem-card-hover scroll-reveal">
                        <div class="relative h-48 overflow-hidden">
                            <img src="<?php echo $_smarty_tpl->tpl_vars['gushi']->value['scene'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['gushi']->value['title'];?>
场景图" class="w-full h-full object-cover transition-transform duration-700 hover:scale-110">
                            <div class="absolute top-3 left-3 bg-cinnabar text-rice text-sm px-3 py-1 rounded-full"><?php echo $_smarty_tpl->tpl_vars['gushi']->value['dynasty'];?>
</div>
                        </div>
                        <div class="p-6">
                            <h3 class="text-xl font-song font-bold mb-2"><?php echo $_smarty_tpl->tpl_vars['gushi']->value['title'];?>
</h3>
                            <p class="text-sm text-lightink mb-3"><?php echo $_smarty_tpl->tpl_vars['gushi']->value['author'];?>
 · <?php echo $_smarty_tpl->tpl_vars['gushi']->value['dynasty'];?>
</p>
                            <p class="font-kai text-ink/80 mb-4"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['gushi']->value['content'],100,"...");?>
</p>
                            <button class="text-cinnabar hover:text-cinnabar/80 transition-colors">
                                查看详情 <i class="fa fa-angle-right ml-1"></i>
                            </button>
                        </div>
                    </a>
                    <?php }} ?>
                </div>
                
                <div class="text-center mt-10 md:hidden scroll-reveal">
                    <a href="poems.html" class="inline-block text-cinnabar hover:text-cinnabar/80 transition-colors">
                        查看全部诗词 <i class="fa fa-angle-right ml-1"></i>
                    </a>
                </div>
            </div>
        </section>
        
        <!-- 互动体验 -->
        <section class="container mx-auto px-4 py-16">
            <h2 class="text-[clamp(1.5rem,3vw,2.25rem)] font-song font-bold mb-2 text-center scroll-reveal">互动体验</h2>
            <p class="text-lightink text-center max-w-2xl mx-auto mb-12 scroll-reveal">不止于读，更能创作与体验，让古典文学焕发新活力</p>
            
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
                <a href="soundscape.html" class="bg-paper rounded-xl p-6 feature-card-hover scroll-reveal">
                    <div class="w-16 h-16 mb-5 rounded-full bg-cinnabar/10 flex items-center justify-center">
                        <i class="fa fa-volume-up text-cinnabar text-2xl"></i>
                    </div>
                    <h3 class="text-lg font-song font-bold mb-2">声景体验</h3>
                    <p class="text-lightink text-sm">聆听诗词意境，感受声音中的古典世界</p>
                </a>
                
                <a href="painting.html" class="bg-paper rounded-xl p-6 feature-card-hover scroll-reveal">
                    <div class="w-16 h-16 mb-5 rounded-full bg-cinnabar/10 flex items-center justify-center">
                        <i class="fa fa-paint-brush text-cinnabar text-2xl"></i>
                    </div>
                    <h3 class="text-lg font-song font-bold mb-2">诗画创作</h3>
                    <p class="text-lightink text-sm">为喜爱的诗词创作插画，用画笔诠释意境</p>
                </a>
                
                <a href="dialogue.html" class="bg-paper rounded-xl p-6 feature-card-hover scroll-reveal">
                    <div class="w-16 h-16 mb-5 rounded-full bg-cinnabar/10 flex items-center justify-center">
                        <i class="fa fa-comments text-cinnabar text-2xl"></i>
                    </div>
                    <h3 class="text-lg font-song font-bold mb-2">古今对话</h3>
                    <p class="text-lightink text-sm">与古代诗人"对话"，探寻创作背后的故事</p>
                </a>
                
                <a href="interactive.html" class="bg-paper rounded-xl p-6 feature-card-hover scroll-reveal">
                    <div class="w-16 h-16 mb-5 rounded-full bg-cinnabar/10 flex items-center justify-center">
                        <i class="fa fa-pencil text-cinnabar text-2xl"></i>
                    </div>
                    <h3 class="text-lg font-song font-bold mb-2">续写诗句</h3>
                    <p class="text-lightink text-sm">延续经典，尝试为诗词创作新的篇章</p>
                </a>
            </div>
        </section>
        
        <!-- 诗人推荐 -->
        <section class="bg-ink text-rice py-16">
            <div class="container mx-auto px-4">
                <h2 class="text-[clamp(1.5rem,3vw,2.25rem)] font-song font-bold mb-2 text-center scroll-reveal">千古诗人</h2>
                <p class="text-rice/70 text-center max-w-2xl mx-auto mb-12 scroll-reveal">走进诗人的世界，了解他们的人生与创作</p>
                
                <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6">
                    <!-- 诗人1 -->
                    <a href="poet-detail.html" class="text-center group scroll-reveal">
                        <div class="relative w-24 h-24 mx-auto mb-3 rounded-full overflow-hidden border-2 border-transparent group-hover:border-cinnabar transition-all duration-300">
                            <img src="//p1.renbenzhihui.com/upload/2025_33/e8a9da84e31af05.png" alt="李白头像" class="w-full h-full object-cover">
                        </div>
                        <h3 class="font-song font-medium group-hover:text-cinnabar transition-colors">李白</h3>
                        <p class="text-xs text-rice/70">唐代</p>
                    </a>
                    
                    <!-- 诗人2 -->
                    <a href="poet-detail.html" class="text-center group scroll-reveal">
                        <div class="relative w-24 h-24 mx-auto mb-3 rounded-full overflow-hidden border-2 border-transparent group-hover:border-cinnabar transition-all duration-300">
                            <img src="//p1.renbenzhihui.com/upload/2025_33/2bee5b62e67727d.png" alt="杜甫头像" class="w-full h-full object-cover">
                        </div>
                        <h3 class="font-song font-medium group-hover:text-cinnabar transition-colors">杜甫</h3>
                        <p class="text-xs text-rice/70">唐代</p>
                    </a>
                    
                    <!-- 诗人3 -->
                    <a href="poet-detail.html" class="text-center group scroll-reveal">
                        <div class="relative w-24 h-24 mx-auto mb-3 rounded-full overflow-hidden border-2 border-transparent group-hover:border-cinnabar transition-all duration-300">
                            <img src="//p1.renbenzhihui.com/upload/2025_33/d39f415bee6a004.png" alt="白居易头像" class="w-full h-full object-cover">
                        </div>
                        <h3 class="font-song font-medium group-hover:text-cinnabar transition-colors">白居易</h3>
                        <p class="text-xs text-rice/70">唐代</p>
                    </a>
                    
                    <!-- 诗人4 -->
                    <a href="poet-detail.html" class="text-center group scroll-reveal">
                        <div class="relative w-24 h-24 mx-auto mb-3 rounded-full overflow-hidden border-2 border-transparent group-hover:border-cinnabar transition-all duration-300">
                            <img src="//p1.renbenzhihui.com/upload/2025_33/ef12383329c04bd.png" alt="苏轼头像" class="w-full h-full object-cover">
                        </div>
                        <h3 class="font-song font-medium group-hover:text-cinnabar transition-colors">苏轼</h3>
                        <p class="text-xs text-rice/70">宋代</p>
                    </a>
                    
                    <!-- 诗人5 -->
                    <a href="poet-detail.html" class="text-center group scroll-reveal">
                        <div class="relative w-24 h-24 mx-auto mb-3 rounded-full overflow-hidden border-2 border-transparent group-hover:border-cinnabar transition-all duration-300">
                            <img src="//p1.renbenzhihui.com/upload/2025_33/410b24ac26a66ad.png" alt="李清照头像" class="w-full h-full object-cover">
                        </div>
                        <h3 class="font-song font-medium group-hover:text-cinnabar transition-colors">李清照</h3>
                        <p class="text-xs text-rice/70">宋代</p>
                    </a>
                    
                    <!-- 诗人6 -->
                    <a href="poet-detail.html" class="text-center group scroll-reveal">
                        <div class="relative w-24 h-24 mx-auto mb-3 rounded-full overflow-hidden border-2 border-transparent group-hover:border-cinnabar transition-all duration-300">
                            <img src="//p1.renbenzhihui.com/upload/2025_33/757b7069cd5e2b4.png" alt="王维头像" class="w-full h-full object-cover">
                        </div>
                        <h3 class="font-song font-medium group-hover:text-cinnabar transition-colors">王维</h3>
                        <p class="text-xs text-rice/70">唐代</p>
                    </a>
                </div>
                
                <div class="text-center mt-10">
                    <a href="poets.html" class="inline-block border-2 border-rice text-rice px-8 py-3 rounded-full hover:bg-rice hover:text-ink transition-all duration-300 font-song">
                        查看更多诗人
                    </a>
                </div>
            </div>
        </section>
    </main>
     <?php $_template = new Smarty_Internal_Template("v2/footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>